The MRG2MVS utility displays information about its state of operation as it is running.
For example, if you are converting a Xerox Metacode print stream like the one shown in the sample JCL, the utility displays the following information:
------ MRG2MVS -------
Converting variable block file to native MVS file...
Finished writing 5579 records: DD:OUTFILE
------ MRG2MVS -------
You could have omitted the “/I=DD:INFILE /O=DD:OUTFILE” parameters since these DD names are the defaults for the /I and /O parameters. If, however, you had omitted these parameters, you would see warning messages similar to these:
------ MRG2MVS -------
Missing /I= parameter, will use DD:INFILE
Missing /O= parameter, will use DD:OUTFILE
Converting variable block file to native MVS file...
Finished writing 5579 records: DD:OUTFILE
------ MRG2MVS -------
If you were converting a 2-byte Documerge record format file, you would need to include the /2 parameter. If you had included this parameter, you would see messages similar to these:
------ MRG2MVS -------
Converting 2 byte variable block file to native MVS file...
Finished writing 5579 records: DD:OUTFILE
------ MRG2MVS -------
Here are the error messages you may see when using the MRG2MVS utility:
------ MRG2MVS -------
Converting variable block file to native MVS file...
ERROR-> Invalid record length (> 64K) at pos: #######
ERROR-> Input file does not use variable block format
ERROR-> Exiting program
-or-
------ MRG2MVS -------
Converting variable block file to native MVS file...
Block/record length mismatch at pos: #######
ERROR-> Exiting program
These messages indicate the utility does not recognize the input file as using the normal Documerge record format. This could be because the input file...
In either case, try including the /2 parameter.
------ MRG2MVS -------
ERROR-> Cannot create output file DD:OUTFILE
ERROR-> Exiting program
This error means the utility cannot create the output file. This could be because the output file already exists and the JCL used did not delete the existing output file before starting this utility.
------ MRG2MVS -------
Converting variable block file to native MVS file...
WARNING-> No records written, possible empty input file
------ MRG2MVS -------
This error indicates the input file cannot be read or is empty. Make sure the input file is valid.
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.